﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Web.UI.HtmlControls.HtmlGenericControl currdiv = (System.Web.UI.HtmlControls.HtmlGenericControl)Master.FindControl("menu");
            System.Web.UI.HtmlControls.HtmlGenericControl button = (System.Web.UI.HtmlControls.HtmlGenericControl)Master.FindControl("button");
            button.Visible = false;
            currdiv.Visible = false;
         
        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            if (tbxUsername.Text == "shuqiang" && tbxPassword.Text == "123")
            {
                if (ddlLanguage.SelectedItem.ToString() == "English")
                {
                    int language = 1;
                    Session["Language"] = language;
                    Response.Redirect("TodayTreatment.aspx?");
                }
                if (ddlLanguage.SelectedItem.ToString() == "Chinese")
                {
                    int language = 2;
                    Session["Language"] = language;
                    Response.Redirect("TodayTreatment.aspx?");
                }
            }
        }

        

    
    }
}